
/// 声明一个类是可以转化为字典对象并希望其存储到数据库中
abstract class Storable {

  /// 用于将实体类对象转化为字典对象
  ///
  /// 实现这个方法来将一个实体类转化为字典对象
  ///
  /// ***继承自这个对象的类还需要实现一个.fromMap的构造函数***
  ///
  /// ex.:
  ///   ```dart
  ///      Map<String,dynamic> toMap(){
  ///
  ///         Map<String, dynamic> result = {};
  ///
  ///         result["list_name"] = listName;
  ///         result["image_path"] = imagePath;
  ///         result["hits"] = hits;
  ///         result["resource_type"] = resourceType.index;
  ///         result["introduce"] = introduce;
  ///         ...
  ///
  ///         return result;
  ///
  ///       }
  ///   ```
  Map<String, dynamic> toMap();

}